package com.boot.blog.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @创建人:yewei
 * @创建时间: 2019/11/21 22:20
 * @描述
 */
@RestController
public class IndexController {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping(value = "/get",method = RequestMethod.GET)
    public String indexHandle(@RequestParam int id,@RequestParam String name){

        logger.info("id {} , name {}",id,name);

        return "Hello World!";
    }
}
